package com.bprogram.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bprogram.pojo.Video;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author cai
 * @since 2023-11-21
 */
public interface VideoService extends IService<Video> {


   Video saveOrUpdateVideo(Video video);
   public IPage<Video> getPageVideo(String currentPage, String pageSize,String videoTitle,String location,String partId);

   /**
    * 根据UpId获取到他所有视频的总播放数
    * @param upId
    * @return
    */
   public String getTotalPlayTimesByUpId(long upId);
   public String getTotalLikeByUpId(long upId);
   public String getTotalUploadByUpId(long upId);

   public boolean updateByVideoId(Video video);
}
